package com.levy.contronller.jvm.classLoader;

/**
 * Created by levy on 2019/5/20.
 */
public class MyTest8 {
    public static void main(String[] args) {
        System.out.println(Child3.a);

        System.out.println("------");

        Child3.doSomething();
    }
}

class Parent3 {
    static int a = 3;

    static {
        System.out.println("parent3 static block");
    }

    static void doSomething () {
        System.out.println("do something");
    }
}

class Child3 extends Parent3 {
    static {
        System.out.println("child3 static block");
    }
}